<div id="regbox">
    <div id="forms">
        <div id="login">
        <?php
            if(!isset($this->errors)){
                $this->errors = array();
            }
            if(!isset($_POST['username'])){
                $_POST['username'] = '';
            }
            if(!isset($_POST['password'])){
                $_POST['password'] = '';
            }
            
            $loginform = Form::getForm('login');
            $loginform = $loginform->form;

            $registerform = Form::getForm('register');
            $registerform = $registerform->form;

            $form = $loginform;
            $form .= '
        </div>';
            $form .= '
        <div id="register">';
            $form .= $registerform;
            echo $form;
        ?>
</div>
</div>
</div>